{% extends 'base.html' %}

{% block content %}
<title>
    {{group.name}} - 畅聊
</title>

<br/>
<form method="post" action="{% url 'chat:send_message' group.id %}">
    {% csrf_token %}
    <div style="display:inline-block;">
        {{form.as_p}}
    </div>
    <button>发表</button>
</form>
<br/>
<a href="{% url 'chat:chatgroup' group.id %}">
    <button>刷新</button>
</a>
<hr/>
{% for report in reports %}
<img src="{% url 'chat:index' %}static/user_icon.png" style="height:19px;width:19px;position:relative;top:3px"/> <span
        style="font-size:20px">{{report.username}}:</span> <span style="font-size:15px;color: #888888;">&nbsp{{report.date}}</span>
<br/>
<span style="font-size:13px;text-align:justify;">
    {{report.value}}
</span>
<hr/>
{% endfor %}

{% endblock content %}
